home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / RTLWIN16.PAK / INITGUID.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  40 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * initguid.h -  Definitions for controlling GUID initialization                           *
  4. *                                                                             *
  5. *               OLE Version 2.0                                               *
  6. *                                                                             *
  7. \*****************************************************************************/
  8.  
  9. /* $Copyright: 1994$ */
  10.  
  11. #if !defined(__INITGUID_H)
  12. #define __INITGUID_H
  13.  
  14. // Include after compobj.h to enable GUID initialization.  This 
  15. //              must be done once per exe/dll.
  16. //
  17. // After this file, include one or more of the GUID definition files.
  18. //
  19. // NOTE: ole2.lib contains references to all GUIDs defined by OLE.
  20.  
  21. #ifndef DEFINE_GUID
  22. #error "initguid: must include compobj.h first."
  23. #endif
  24.  
  25. #undef DEFINE_GUID
  26.  
  27. #ifdef _MAC
  28. #define __based(a)
  29. #endif
  30.  
  31. #if defined(WIN32) || defined(__BORLANDC__)
  32. #define __based(a)  FAR
  33. #endif
  34.  
  35. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  36.     EXTERN_C const GUID CDECL __based(__segname("_CODE")) name \
  37.             = { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
  38.  
  39. #endif  /* __INITGUID_H */
  40.